// components/myswiper/myswiper.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    images: {
      type: Array,
      value: ["/img/images/home/pup_demo.png", "/img/images/home/pup_demo.png", "/img/images/home/pup_demo.png"]
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    slider: [
      { picUrl: '/img/images/home/pup_demo.png' },
      { picUrl: '/img/images/home/pup_demo.png' },
      { picUrl: '/img/images/home/pup_demo.png' }
    ],
    swiperCurrent: 0,
  },

  /**
   * 组件的方法列表
   */
  methods: {
    swiperChange: function (e) {
      this.setData({
        swiperCurrent: e.detail.current
      })
    }
  }
})
